//package com.shakev.coupon.task;
//
//import org.springframework.beans.factory.annotation.Configurable;
//import org.springframework.scheduling.annotation.EnableScheduling;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Component;
//
//import java.text.SimpleDateFormat;
//import java.util.Date;
//
///**
// * @ClassName ScheduledTasks
// * @Description TODO
// * @Author 李伟松
// * @CreateDate 2019-05-15 下午 11:00
// * @UpdateDate 2019-05-15 下午 11:00
// * @Version 1.0
// */
//
//@Component
//@Configurable
//@EnableScheduling
//public class ScheduledTasks{
//
//    //每1分钟执行一次
//    @Scheduled(cron = "*/5 * * * * ?")
//    public void reportCurrentByCron(){
//        System.out.println ("Scheduling Tasks Examples By Cron: The time is now " + dateFormat ().format (new Date ()));
//    }
//
//    private SimpleDateFormat dateFormat(){
//        return new SimpleDateFormat ("HH:mm:ss");
//    }
//
//}